package models.domain;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Kristborg
 * Date: 27.2.2013
 * Time: 21:38
 * To change this template use File | Settings | File Templates.
 */
public class Graph {
    protected Double x_as;
    protected Integer y_as;
    protected Boolean you;
    protected int afangi_id;
    protected List<Graph> graphs;

    public Graph() {
    }

    public Graph(Double x_as, Integer y_as, Boolean you) {
        this.x_as = x_as;
        this.y_as = y_as;
        this.you = you;
    }

    public Graph(int afangi_id, List<Graph> graphs) {
        this.afangi_id = afangi_id;
        this.graphs = graphs;
    }

    public Double getX_as() {
        return x_as;
    }

    public void setX_as(Double x_as) {
        this.x_as = x_as;
    }

    public Integer getY_as() {
        return y_as;
    }

    public void setY_as(Integer y_as) {
        this.y_as = y_as;
    }

    public Boolean getYou() {
        return you;
    }

    public void setYou(Boolean you) {
        this.you = you;
    }
    public void incrementY(){
        y_as ++;
    }

    public int getAfangi_id() {
        return afangi_id;
    }

    public void setAfangi_id(int afangi_id) {
        this.afangi_id = afangi_id;
    }

    public List<Graph> getGraphs() {
        return graphs;
    }

    public void setGraphs(List<Graph> graphs) {
        this.graphs = graphs;
    }
}
